var agents = new Array();

function Awake()
{
	var agentList : Agent[] = GameObject.FindObjectsOfType(Agent) as Agent[];
	for (var thisAgent : Agent in agentList)
	{
		agents.Push(thisAgent);
		thisAgent.tag = "Agent";
	}
}

function Update() 
{

}

function Remove(agent : GameObject)
{
	for (var i = 0; i < agents.length; i = i + 1)
	{
		if (agents[i].transform.position == agent.transform.position)
		{
			agents.RemoveAt(i);
		}
	}
}